/*
 * Pneumatics.h
 *
 *  Created on: Jan 19, 2010
 *      Author: Robotics
 */

#ifndef PNEUMATICS_H_
#define PNEUMATICS_H_
#include "Relay.h"
#include "DigitalInput.h"
#include "DigitalOutput.h"
#include "Solenoid.h"
#include <Compressor.h>

class Pneumatics{

	public:


	Pneumatics(KHSJoystick *joystick);
	~Pneumatics();

	void run();
	void kick();

	Relay *m_magnet;
	Compressor *m_compressor;
	DigitalInput *m_isKicked, *m_isReturned, *isPressurized;
	Solenoid *valveKick, *valveReturn, *m_lowPressure, *m_highPressure;
	KHSJoystick *m_joystick;
	int state;
	int m_pressure;

private:

};

#endif /* PNEUMATICS_H_ */
